@extends('Admin.base')

@section('content')
  <div class="layui-card">
    <div class="layui-card-header layuiadmin-card-header-auto">
      <fieldset class="layui-elem-field layui-field-title">
        <legend>个人资料</legend>
      </fieldset>
    </div>
    <div class="layui-card-body layui-col-space10 layui-form-item">
      <form class="layui-form" action="">
        <div class="layui-form-item layui-col-md6">
          <label for="" class="layui-form-label">账号</label>
          <div class="layui-input-block">
            <div class="layui-form-mid">{{$data->username ?? ''}}</div>
          </div>
        </div>
        <div class="layui-form-item layui-col-md6">
          <label for="" class="layui-form-label">姓名</label>
          <div class="layui-input-block">
            <div class="layui-form-mid">{{$data->realname ?? ''}}</div>
          </div>
        </div>
        <div class="layui-form-item layui-col-md6">
          <label for="" class="layui-form-label">电话</label>
          <div class="layui-input-block">
            <div class="layui-form-mid">{{$data->phone ?? ''}}</div>
          </div>
        </div>
        <div class="layui-form-item layui-col-md6">
          <label for="" class="layui-form-label">角色</label>
          <div class="layui-input-block">
            <div class="layui-form-mid">{{$data->role ? getRole($data->role) : ''}}</div>
          </div>
        </div>
      </form>
    </div>
  </div>
@endsection

